﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SoftwareConsulting.BI11.Studio.InternalServices;
using SoftwareConsulting.BI11.Studio.DataTransfer.Properties;

namespace SoftwareConsulting.BI11.Studio.DataTransfer
{    
    public abstract class BIDataTransferException : BIException
    {
        protected BIDataTransferException(string message, Exception innerException, params object[] msgParams) :
            base(message, innerException, msgParams)
        {
        }
    }

    public class BIDataNodeNotReadyException : BIDataTransferException
    {
        public BIDataNodeNotReadyException(Exception innerException) :
            base(Resources.BI_EXCEPTION_DATANODE_NOTREADY, innerException)
        {
        }
    }

    public class BIDataNodeAlreadyReadyException : BIDataTransferException
    {
        public BIDataNodeAlreadyReadyException(Exception innerException) :
            base(Resources.BI_EXCEPTION_DATANODE_ALREADYREADY, innerException)
        {
        }
    }

    public class BIClassificationProblemWithTrainingNoExportDataException : BIDataTransferException
    {
        public BIClassificationProblemWithTrainingNoExportDataException(Exception innerException) :
            base(Resources.BI_EXCEPTION_EXPORT_CLASSIFICATIONPROBLEMWITHTRAINING_NODATA, innerException)
        {
        }
    }
   
    public class BIClassificationProblemWithTrainingExportCanceledException : BIDataTransferException
    {
        public BIClassificationProblemWithTrainingExportCanceledException(Exception innerException) :
            base(Resources.BI_EXCEPTION_EXPORT_CLASSIFICATIONPROBLEMWITHTRAINING_CANCELED, innerException)
        {
        }
    }
}
